/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>Project: spring2021 - Student
 * <p>Powered by webrx On 2021-11-02 11:02:47
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */


@Data @Component
public class Student {
    @Value("1111")
    private int id;
    @Value("1.2")
    private double money;
    @Value("李青")
    private String name;
    @Value("true")
    private boolean isstu;
    @Value("java,php,html,mysql,php,html")
    private String[] arrstr;
    @Value("10,20,30,40")
    private int[] arrint;

    @Value("#{'java,php,html,mysql,php,html'.split(',')}")
    private Set<String> set;

    @Value("#{'java,php,html,mysql,php,html'.split(',')}")
    private List<String> list;

    @Value("#{{name:'lisi',age:18,is:true}}")
    private Map<String,Object> map;


    @Value("#{t1.name}")
    private String tname;

    @Value("#{student.id * 2}")
    private int num;

    @Autowired
    private Teacher t3;


    @Value("${books}")
    private String[] tarr;

    @Value("#{'${books}'.split(',')}")
    private Set<String> tset;


    @Value("#{${db.map}}")
    private Map<String,Object> tmap;


    @Value("#{{t1,t2,teacher}}")
    private Teacher[] teachers;

    @Value("#{{t1,t2,teacher}}")
    private List<Teacher> listts;

}
